﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace ASPNET.StarterKit.BusinessLogicLayer
{
/// <summary>
/// Summary description for Supplier
/// </summary>
    public class Supplier
    {
       //private int _SupID;
        private string _SupName;
        private string _SupAddrStreet;
        private string _SupAddrCity;
        private string _SupState;
        private string _SupCountry;
        private Int64 _SupZipCode;
        private Int64 _SupPhone;
        private Int64 _SupFax;
        private string _SupEmailId;
        private int _SupLeadTime;
        private string _SupStatus;

        public Supplier(
           // int SupID, 
            string SupName,
            string SupAddrStreet,
            string SupAddrCity, 
            string SupState, 
            string SupCountry,
            Int64 SupZipCode,
            Int64 SupPhone, 
            Int64 SupFax, 
            string SupEmailId,
            int SupLeadTime,
            string SupStatus
            )

        {
           // _SupID = SupID;
            _SupName = SupName;
            _SupAddrStreet = SupAddrStreet;
            _SupAddrCity = SupAddrCity;
            _SupState = SupState;
            _SupCountry = SupCountry;
            _SupZipCode = SupZipCode;
            _SupPhone = SupPhone;
            _SupFax = SupFax;
            _SupEmailId = SupEmailId;
            _SupLeadTime = SupLeadTime;
            _SupStatus = SupStatus;
        }


        //public int SupID
        //{
        //    get
        //    {

        //        return _SupID;

        //    }

        //}
        public string SupName
        {
            get
            {
                if (String.IsNullOrEmpty(_SupName))
                {
                    return string.Empty;
                }
                return _SupName;

            }
            set
            {
                _SupName = value;
            }
        }
        public string SupAddrStreet
        {
            get
            {
                if (String.IsNullOrEmpty(_SupAddrStreet))
                {
                    return string.Empty;
                }
                return _SupAddrStreet;

            }
            set
            {
                _SupAddrStreet = value;
            }
        }
        public string SupAddrCity
        {
            get
            {
                if (String.IsNullOrEmpty(_SupAddrCity))
                {
                    return string.Empty;
                }
                return _SupAddrCity;

            }
            set
            {
                _SupAddrCity = value;
            }
        }
        public string SupState
        {
            get
            {
                if (String.IsNullOrEmpty(_SupState))
                {
                    return string.Empty;
                }
                return _SupState;

            }
            set
            {
                _SupState = value;
            }
        }
        public string SupCountry
        {
            get
            {
                if (String.IsNullOrEmpty(_SupCountry))
                {
                    return string.Empty;
                }
                return _SupCountry;

            }
            set
            {
                _SupCountry = value;
            }
        }

        public Int64 SupZipCode
        {
            get
            {
                
                return _SupZipCode;

            }
            set
            {
                _SupZipCode = value;
            }
        }
        public Int64 SupPhone
        {
            get
            {
                
                return _SupPhone;

            }
            set
            {
                _SupPhone = value;
            }
        }
        public Int64 SupFax
        {
            get
            {
                
                return _SupFax;

            }
            set
            {
                _SupFax = value;
            }
        }
        public string SupEmailId
        {
            get
            {
                if (String.IsNullOrEmpty(_SupEmailId))
                {
                    return string.Empty;
                }
                return _SupEmailId;

            }
            set
            {
                SupEmailId = value;
            }
        }

        public int SupLeadTime
        {
            get
            {
                
                return _SupLeadTime;

            }
            set
            {
                _SupLeadTime = value;
            }
        }

        public string SupStatus
        {
            get
            {
                
                return _SupStatus;

            }
            set
            {
                _SupStatus = value;
            }
        }
    }
}
